<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            display: flex;
            width: 600px;
            height: 300px;
            background-color: pink;
               /* 1.沿着y轴  column*/
            /* flex-direction: column; */
            /* 2.自动换行 wrap */
            /* flex-wrap: wrap; */
            /* 3.复合写法 把设置主轴方向和是非换行（换列） */
            flex-flow: column wrap;
        }

        span {
            width: 150px;
            height: 100px;
            background-color: skyblue;

        }
    </style>
</head>

<body>
    <div>
    <span>1</span>
    <span>1</span>
    <span>1</span>
    <span>1</span>
    <span>1</span>
    </div
</body>

</html>